home *** CD-ROM | disk | FTP | other *** search
/ 1,000+ Great Games / 1_1000 Games.iso / DOSGAMES / BOGGLE.ZIP / SOURCE.ZIP / WIP.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-03  |  653 b   |  37 lines

  1. #ifndef  BOGWIP_H
  2. #define  BOGWIP_H
  3.  
  4. #include  "bogwin.hpp"
  5. #include  <ientryfd.hpp>
  6. #include  "dict.hpp"
  7.  
  8. //
  9. //  Boggle WIP class
  10. //
  11.  
  12. const BOOL LOOKUP =   1;
  13. const BOOL NOLOOKUP = 0;
  14.  
  15. class TBogWIP;
  16.  
  17. class TBogWIP : public IEntryField
  18. {
  19.    private:
  20.      char sWIPString[WORDLENGTH]; 
  21.      Dictionary *WordChk;
  22.  
  23.   public :
  24.  
  25.      TBogWIP (unsigned long id, IWindow* parent);
  26.      ~TBogWIP();
  27.  
  28.      void addLetter(char *sLetter);
  29.      int checkWord(char *word) { return (WordChk->Lookup(word)); }
  30.      void resetString();
  31.      void upString(char *, char *);
  32.      char *getWIPString() {return sWIPString;}
  33. } ;
  34.  
  35. #endif
  36.  
  37.